//
//  ELKeyChainManager.h
//  jobClient
//
//  Created by 一览ios on 2017/10/25.
//  Copyright © 2017年 YL1001. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef enum : NSUInteger {
    ELLoginIdentityTypePerson           = 0,//求职者
    ELLoginIdentityTypeEnterprise       = 1,//企业
    ELLoginIdentityTypeBroker           = 2,//经纪人
    ELLoginIdentityTypeEnterpriseVisitor           = 3,//企业游客端
} ELLoginIdentityType;

@interface ELKeyChainManager : NSObject

@property (nonatomic, copy) NSString *userId;
@property (nonatomic, assign) BOOL loginIdentityAsEnterprise;
@property (nonatomic, assign) ELLoginIdentityType loginIdentityType;

+ (ELKeyChainManager *)sharedManager;

#pragma mark - 当前用户id
//- (NSString *)userId;
//- (void)setUserId:(NSString *)userId;

#pragma mark - 当前用户上次登录身份
//- (BOOL)loginIdentityAsEnterprise;
//- (void)setLoginIdentityAsEnterprise:(BOOL)loginIdentityAsEnterprise;

- (ELLoginIdentityType)loginIdentityType;
- (void)setLoginIdentityType:(ELLoginIdentityType)loginIdentityType;

#pragma mark - 通用赋值、取值
- (NSString *)keyChainValueForKey:(NSString *)key;
- (void)setKeyChainValue:(NSString *)value forKey:(NSString *)key;

@end
